package com.zeng.springcloud.consumer;

import org.springframework.cloud.bus.event.Destination;
import org.springframework.cloud.bus.event.PathDestinationFactory;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * @author ahaschool
 * @date 2021-06-08 11:36
 */
public class MyEvent extends RemoteApplicationEvent {
    private String message;

    public MyEvent(String originService, String message) {
        super(message, originService, new PathDestinationFactory().getDestination(null));
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
